<script setup>
import { inject, ref, reactive } from "vue";
import son from './son.vue'
inject('userName')

console.log(inject('userName'), 'injecttt')

</script>


<template>
    <div>子组件</div>
    <son />
</template>